package com.tuyue.police.util;

/**
 * @Author: 王金海
 * @Description:
 * @Date: Created by Administrator on 2018/3/19.
 * @Modified By:
 */
public class ToosUtil {

    /**
     * 生成6位随机数
     * @return
     */
    public static String getRandom() {
        String num = "";
        for (int i = 0 ; i < 6 ; i ++) {
            num = num + String.valueOf((int) Math.floor(Math.random() * 9 + 1));
        }
        System.out.println("验证码是:"+num);
        return num;
    }
}
